﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="UnkeyedTestPersistableObject.cs" company="SaltFx">
//   Copyright (c) SaltFx - All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

namespace SaltFx.Tests.PersistableObject
{
	using System;

	public class UnkeyedTestPersistableObject : PersistableObject<Guid>
	{
		#region Constructors and Destructors

		/// <summary>
		/// Initializes a new instance of the <see cref="UnkeyedTestPersistableObject" /> class.
		/// </summary>
		/// <param name="code">The test object's unique code.</param>
		/// <param name="name">The test object's name.</param>
		public UnkeyedTestPersistableObject(string code, string name)
		{
			this.Code = code;
			this.Name = name;
		}

		/// <summary>
		/// Initializes a new instance of the <see cref="UnkeyedTestPersistableObject" /> class.
		/// </summary>
		/// <remarks>Required for NHibernate support.</remarks>
		protected UnkeyedTestPersistableObject()
		{
		}

		#endregion

		#region Public Properties

		/// <summary>
		/// Gets or sets the code.
		/// </summary>
		/// <value>The code.</value>
		public virtual string Code { get; set; }

		/// <summary>
		/// Gets or sets the name.
		/// </summary> 
		public virtual string Name { get; set; }

		#endregion
	}
}